How to alter my mac os $PATH variable so that I can run the latest php version? [closed]

Posted by skiabox on Super User See other posts from Super User or by skiabox
Published on 2012-10-10T21:04:51Z Indexed on 2012/10/10 21:42 UTC
Read the original article Hit count: 179

Filed under:
|
|

Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?

I've just followed this article (http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/) to update my php installation using HomeBrew. The latest php version is indeed installed in /usr/local/bin The problem is that my $PATH variable is the following (doing an echo $PATH reveals it) :

/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

...so the old version of php (that comes with mountain lion) always run first

Any ideas on how to solve this? Thank you.

© Super User or respective owner

Related posts about osx

Related posts about mac